Skip to content

refactor: Remove parallelism configs from QueryKitSpec.#19280

Open
gianm wants to merge 2 commits intoapache:masterfrom
gianm:msq-simplify-qks
Open

refactor: Remove parallelism configs from QueryKitSpec.#19280
gianm wants to merge 2 commits intoapache:masterfrom
gianm:msq-simplify-qks

Conversation

@gianm
Copy link
Copy Markdown
Contributor

@gianm gianm commented Apr 8, 2026

This patch reduces QueryKitSpec to simply a QueryKit plus a desired query ID. All parallelism configs are removed. This is useful because QueryKitSpec is not used at all in pre-planned decoupled planning. Therefore, this change helps better align plans created in decoupled mode from plans created with QueryKit.

The parameters have been migrated to other locations:

  • maxLeafWorkerCount is moved to WorkerManager#maxWorkerCount.

  • maxNonLeafWorkerCount is moved to ControllerContext.

  • targetPartitionsPerWorker is moved to ControllerContext. Planners can signify that they want their partition counts set to maxWorkerCount * targetPartitionsPerWorker by using the new adjustable parameter on various ShuffleSpec.

This patch reduces QueryKitSpec to simply a QueryKit plus a
desired query ID. All parallelism configs are removed. This is
useful because QueryKitSpec is not used at all in pre-planned
decoupled planning. Therefore, this change helps better align
plans created in decoupled mode from plans created with QueryKit.

The parameters have been migrated to other locations:

- maxLeafWorkerCount is moved to WorkerManager#maxWorkerCount.

- maxNonLeafWorkerCount is moved to ControllerContext.

- targetPartitionsPerWorker is moved to ControllerContext.
  Planners can signify that they want their partition counts set to
  "maxWorkerCount * targetPartitionsPerWorker" by using the new
  "adjustable" parameter on various ShuffleSpecs.
@github-actions github-actions bot added Area - Batch Ingestion Area - Querying Area - MSQ For multi stage queries - https://github.com/apache/druid/issues/12262 labels Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area - Batch Ingestion Area - MSQ For multi stage queries - https://github.com/apache/druid/issues/12262 Area - Querying

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant